<% if @record %>
  window.panel.header.html(window.panel.close + "<%= j report_name(@record.record_hash.with_indifferent_access.except(*RailsPerformance.ignore_trace_headers)) %>");
<% else %>
  window.panel.header.html(window.panel.close);
<% end %>

window.panel.content.html("<%= j render '/rails_performance/rails_performance/trace' %>");

showPanel();
